package cn.wolfcode.luowowo.query;


import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
public class TravelCondition {

    public static final Map<Integer,TravelCondition> DATA_MAP = new HashMap<>();
    public static final Map<Integer,TravelCondition> PRE_EXPEND_TYPE = new HashMap<>();


    static{
        DATA_MAP.put(1,new TravelCondition(0,3));
        DATA_MAP.put(2,new TravelCondition(4,7));
        DATA_MAP.put(3,new TravelCondition(8,14));
        DATA_MAP.put(4,new TravelCondition(15,Integer.MAX_VALUE));

        PRE_EXPEND_TYPE.put(1,new TravelCondition(1,999));
        PRE_EXPEND_TYPE.put(2,new TravelCondition(1000,6000));
        PRE_EXPEND_TYPE.put(3,new TravelCondition(6001,20000));
        PRE_EXPEND_TYPE.put(4,new TravelCondition(20001,Integer.MAX_VALUE));
    }

    private Integer min;
    private Integer max;

    public TravelCondition(Integer min, Integer max) {
        this.min = min;
        this.max = max;
    }
}
